home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlib43 / mntlib / fprintf.c < prev    next >
C/C++ Source or Header  |  1993-10-11  |  393b  |  22 lines

  1. #include <stdio.h>
  2. #include <stdarg.h>
  3. #include "lib.h"
  4.  
  5. /* revised 4/15/92 sb -- moved __eprintf to a separate file to avoid conflict
  6.    with libm.a's printf */
  7.  
  8. #if __STDC__
  9. int fprintf(FILE *fp, const char *fmt, ...)
  10. #else
  11. int fprintf(fp, fmt) FILE *fp; const char *fmt;
  12. #endif
  13. {
  14.     int r;
  15.     va_list args;
  16.  
  17.     va_start(args, fmt);
  18.     r = _doprnt(fputc, fp, fmt, args);
  19.     va_end(args);
  20.     return r;
  21. }
  22.